from dotenv import load_dotenv, find_dotenv
from langchain_core.prompts import PromptTemplate
from langchain_openai import ChatOpenAI

load_dotenv(find_dotenv())

llm = ChatOpenAI(model="deepseek-ai/DeepSeek-V3")

template = PromptTemplate.from_template("这是一个关于{text}的故事")
prompt = template.format(text="小明")
print(prompt)
# rep = llm.invoke("你是谁")
#
# print(rep.content)